﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace ESSManageService.Model.DBModels.Info
{
    /// <summary>
    /// 校验规则管理
    /// </summary>
    [SugarTable("Validation_Rule_Info", tableDescription: "校验规则信息表")]
    public class ValidationRuleInfo
    {
        /// <summary>
		/// 主键ID
		/// <summary>
        [SugarColumn(IsPrimaryKey = true, ColumnName = "id", IsIdentity = true)]
        public long Id { get; set; }

        /// <summary>
        /// 规则名称
        /// <summary>
        [SugarColumn(Length = 200, IsNullable = true)]
        public string name { get; set; }

        /// <summary>
        /// 严重级别（1-5，1为最高)
        /// <summary>
        [SugarColumn(Length = 200, IsNullable = true)]
        public int level { get; set; }

        /// <summary>
        /// 触发后果
        /// <summary>
        [SugarColumn(Length = 200, IsNullable = true)]
        public string consequence { get; set; }

        /// <summary>
        /// 组件名称
        /// <summary>
        [SugarColumn(Length = 200, IsNullable = true)]
        public string component { get; set; }

        /// <summary>
        /// 参数名
        /// <summary>
        [SugarColumn(Length = 200, IsNullable = true)]
        public string parameter { get; set; }

        /// <summary>
        /// 比较符
        /// <summary>
        [SugarColumn(Length = 200, IsNullable = true)]
        public string Operator { get; set; }

        /// <summary>
        /// 阈值
        /// <summary>
        [SugarColumn(Length = 200, IsNullable = true)]
        public int value { get; set; }

        /// <summary>
        /// 规则状态(0-停用1-启用)
        /// <summary>
        [SugarColumn(Length = 200, IsNullable = true)]
        public string rule_state { get; set; }
    }
}
